package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RollupList implements GroupingElement, GroupingSet {

    private int beginIndex;
    private int endIndex;
    private OrdinaryGroupingSetList ordinaryGroupingSetList;

    public RollupList(int beginIndex, int endIndex,
                      OrdinaryGroupingSetList ordinaryGroupingSetList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.ordinaryGroupingSetList = ordinaryGroupingSetList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public OrdinaryGroupingSetList getOrdinaryGroupingSetList() {
        return ordinaryGroupingSetList;
    }

}
